/*
 * @Autor: 蒋振宇
 * @Date: 2020-07-11
 */
import request from '@/plugins/request';
// 排行榜人员信息
export function memberInfo(data) {
    return request({
        url: '/v1/work/leaderboard/member-info',
        method: 'get',
        params: data
    });
}
export function chatStatistics(data) {
    return request({
        url: '/v1/work/leaderboard/chat-statistics',
        method: 'get',
        params: data
    });
}
export function contactInfo(data) {
    return request({
        url: '/v1/work/leaderboard/contact-info',
        method: 'get',
        params: data
    });
}
export function contactDis(data) {
    return request({
        url: '/v1/work/leaderboard/contact-dis',
        method: 'get',
        params: data
    });
}
export function voiceRecord(data) {
    return request({
        url: '/v1/work/leaderboard/voice-record',
        method: 'get',
        params: data
    });
}
export function wechatCircle(data) {
    return request({
        url: '/v1/work/leaderboard/wechat-circle',
        method: 'get',
        params: data
    });
}
export function callbackInfo(data) {
    return request({
        url: '/v1/work/leaderboard/callback',
        method: 'get',
        params: data
    });
}

// 线索列表
export function clueList(data) {
    return request({
        url: '/v1/clue/user/clue-list',
        method: 'get',
        params: data
    });
}
// 过滤线索列表
export function filterClueList(data) {
    return request({
        url: '/v1/clue/user-filter/repeat-clue-list',
        method: 'get',
        params: data
    });
}
// 过滤线索删除
export function filterClueDel(data) {
    return request({
        url: '/v1/clue/user-filter/delete-repeat-clue',
        method: 'post',
        data
    });
}
// 过滤线索重复
export function filterRepeatData(data) {
    return request({
        url: '/v1/clue/user-filter/grab-repeat-list',
        method: 'get',
        params: data
    });
}
// 线索沟通信息
export function gtMessage(data) {
    return request({
        url: '/v1/clue/user/gt-message',
        method: 'get',
        params: data
    });
}
// 线索日志
export function clueLog(data) {
    return request({
        url: '/v1/clue/user/clue-log',
        method: 'get',
        params: data
    });
}
// 2022/5/18获取相应详情线索
export function clueuserinfoNew(data) {
    return request({
        url: '/v1/clue/user/info-new',
        method: 'get',
        params: data
    });
}
// 留言重复列表
export function grapRepeatData(data) {
    return request({
        url: '/v1/clue/user/grab-repeat-list',
        method: 'get',
        params: data
    });
}

// 线索联系
export function infoNew(data) {
    return request({
        url: '/v1/clue/user/info-new',
        method: 'get',
        params: data
    });
}
// 患者操作日志
export function patientindexsearchmobile(data) {
    return request({
        url: '/v1/patient/index/search-mobile',
        method: 'get',
        params: data
    });
}
// 联系线索
export function clueusercontact(data) {
    return request({
        url: '/v1/clue/user/contact',
        method: 'post',
        data
    });
}
// 新增编辑患者与当前项目白友患者库匹配，号码已存在时提示该患者为老患者到诊
export function repeatbaiyou(data) {
    return request({
        url: '/v1/clue/user/repeat-bai-you',
        method: 'post',
        data
    });
}
// 老患者详情
export function oldpatientInfo(data) {
    return request({
        url: '/v1/clue/user/patient-info',
        method: 'get',
        params: data
    });
}
// 老患者转客户
export function cluetoPatient(data) {
    return request({
        url: '/v1/clue/user/clue-to-patient',
        method: 'post',
        data
    });
}
// 病种待核验列表
export function noCheckList(data) {
    return request({
        url: '/v1/patient/diseases-check/no-check-list',
        method: 'get',
        params: data
    });
}
// 病种核验配置列表
export function diseasesCheckList(data) {
    return request({
        url: '/v1/base/diseases-check/diseases-check-list',
        method: 'get',
        params: data
    });
}
// 核验病种设置编辑
export function updateDiseasesCheck(data) {
    return request({
        url: '/v1/base/diseases-check/update-diseases-check',
        method: 'post',
        data
    });
}

// 病种已核验列表
export function checkedList(data) {
    return request({
        url: '/v1/patient/diseases-check/have-check-list',
        method: 'get',
        params: data
    });
}
//授权码列表
export function codeList(data) {
    return request({
        url: '/v1/setting/auth-code/code-list',
        method: 'get',
        params: data
    });
}
//授权码条件下拉
export function codeCondition(data) {
    return request({
        url: '/v1/setting/auth-code/condition',
        method: 'get',
        params: data
    });
}
//授权码添加
export function codeAdd(data) {
    return request({
        url: '/v1/setting/auth-code/code-add',
        method: 'post',
        data
    });
}
//授权码删除
export function codeDel(data) {
    return request({
        url: '/v1/setting/auth-code/code-del',
        method: 'post',
        data
    });
}
//授权码绑定
export function codeBind(data) {
    return request({
        url: '/v1/setting/auth-code/code-bind',
        method: 'post',
        data
    });
}
//部门标签下拉列表
export function departmentList(data) {
    return request({
        url: '/v1/patient/index/tags-condition-list-v2',
        method: 'get',
        params: data
    });
}
//线索导出
export function exportClue(data) {
    return request({
        url: '/v1/clue/user/export-clue-mobile',
        method: 'get',
        params: data
    });
}